<template>
	<view class="comment-content">
		<web-view :src="infoUrl"></web-view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				infoUrl: ''
			}
		},
		onLoad(params) {
			this.getDocInfo(params.id)
		},
		methods: {
			getDocInfo(id) {
				uni.showLoading({
					title: '',
					mask: false
				});
				uni.request({
					url: this.$store.state.baseUrl + '/lwj/get_document_info_new',
					method: 'POST',
					header: {
						token: this.$store.state.token
					},
					data: {
						doc_id: id
					},
					success: res => {
						if (res.data.code === 1) {
							this.infoUrl = res.data.data.list
						}
						uni.hideLoading()
					},
					fail: () => {},
					complete: () => {}
				});
			}
		}
	}
</script>

<style>
	.comment-content {
		background-color: #FFFFFF;
		height: 100%;
		width: 100%;
	}
</style>
